import createHistory from 'history/createBrowserHistory'
import dva from 'dva'
import index from './model/index'
import router from './router/index'
import createLoading from 'dva-loading';
import user from './model/user'
import info from './model/info'
import chat from './model/chat'

let app = dva({
    history:createHistory(),
});
//使用loading
app.use(createLoading());
app.router(router);
app.model(index);
app.model(user);
app.model(info);
app.model(chat);
app.start('#root');



